<?php


namespace App\Http\Controllers\admin\api;


use App\Http\Controllers\admin\service\StrategyService;
use App\Http\Controllers\admin\validate\Strategy;
use App\Http\Controllers\utils\ToolUtil;
use Illuminate\Http\Request;

class StrategyApi
{


    public function timeControlList(Request $request){
        $param = $request->all();
        $data = Strategy::snQuery($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return StrategyService::timeControlList($param);
    }

    public function otherSettingList(Request $request){
        $param = $request->all();
        $data = Strategy::snQuery($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return StrategyService::otherSettingList($param);
    }


}
